<div id="user-action-bar">
<ul>
<?php foreach ($actions as $action) {
	if (isset($action['visible']) && !$action['visible']) {
		continue;
	}
	if (!isset($action['linkOptions'])) {
		$action['linkOptions'] = array();
	}
	if (!isset($action['linkOptions']['class'])) {
		$action['linkOptions']['class'] = '';
	}
	$action['linkOptions']['class'] .= ' action-icon';
	if (isset($action['iconClass'])) {

		$action['linkOptions']['class'] .= ' ' . $action['iconClass'];
	}
?>
	<li><?php echo CHtml::link($action['label'], $action['url'], $action['linkOptions']); ?></li>
<?php } ?>	
</ul>
</div>
